#!/bin/bash

echo "=== 检查iOS证书状态 ==="
echo ""

echo "🔍 查看所有签名证书："
security find-identity -v -p codesigning

echo ""
echo "🔍 查看Distribution证书："
security find-identity -v -p codesigning | grep "iPhone Distribution"

echo ""
echo "🔍 查看Development证书："
security find-identity -v -p codesigning | grep "iPhone Developer"

echo ""
echo "如果看到证书但仍有问题，可能需要检查私钥是否存在"
echo "建议：如果问题持续，可以尝试切换到自动签名"
